package com.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

/**
 * Created by Phillip on 2014/5/1.
 */
public class Book extends HttpServlet {


    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        String flightnumber1 = (String) request.getAttribute("flightnumber1");
        String flightnumber2 = (String) request.getAttribute("flightnumber2");
        String date1 = (String) request.getAttribute("date1");
        String date2 = (String) request.getAttribute("date2");
        String seat1 = (String) request.getAttribute("seat1");
        String seat2 = (String) request.getAttribute("seat2");

        HttpSession session = request.getSession();
        String name = (String) session.getAttribute("name");
        String credit = (String) session.getAttribute("credit");

    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
